package com.example.practice.service.impl;

import com.example.practice.dao.ActivityUrlDao;
import com.example.practice.entity.ActivityUrl;
import com.example.practice.service.ActivityUrlService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (ActivityUrl)表服务实现类
 *
 * @author makejava
 * @since 2024-01-03 09:38:46
 */
@Service("activityUrlService")
public class ActivityUrlServiceImpl implements ActivityUrlService {
    @Resource
    ActivityUrlDao activityUrlDao;
    @Override
    public List<ActivityUrl> getActivityUrl(Integer aid){
       return this.activityUrlDao.getActivityUrl(aid);
    }
    @Override
    public Integer insertActivityUrl(Integer aid, String url,String fileName){
        return this.activityUrlDao.insertActivityUrl(aid,url,fileName);
    }

    @Override
    public List<ActivityUrl> getAllActUrl() {return this.activityUrlDao.getAllActUrl();}

    @Override
    public List<ActivityUrl> getImageByAid(Integer aid) {return this.activityUrlDao.getImageByAid(aid);}
}
